package cn.tedu._02notice.mapper;

import cn.tedu._02notice.pojo.entity.Notice;
import cn.tedu._02notice.pojo.vo.NoticeDetaillnfoVO;
import cn.tedu._02notice.pojo.vo.NoticeListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.http.converter.json.GsonBuilderUtils;

import javax.crypto.spec.PSource;
import java.util.List;

@Mapper
public interface NoticeMapper {

    int insertNotice(Notice notice);


    List<NoticeListVO> selectNotice(@Param("title") String title,@Param("type") Integer type);


    NoticeDetaillnfoVO selectById(Long id);


    int deleteById(Integer id);

    int updateNotice(Notice notice);
}
